﻿Type.registerNamespace("Chat");
    Chat = function() {
}

Chat.prototype = {

    Say: function(message, callback, errorCallBack) {
        ChatService.IChat.Say(message, callback, errorCallBack);
    },

    Whisper: function(to, msg, callback, errorCallBack) {
        ChatService.IChat.Whisper(to, msg, callback, errorCallBack);
    },

    Join: function(callback, errorCallBack) {
        ChatService.IChat.Join(callback, errorCallBack);
    },

    Leave: function(callback, errorCallBack) {
        ChatService.IChat.Leave(callback, errorCallBack);
    },

    dispose: function() {
    }
}

Chat.registerClass('Chat', null, Sys.IDisposable)

if (typeof (Sys) !== 'undefined') {
    Sys.Application.notifyScriptLoaded();
}